﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <title>Ping: UdpEchoClient.h Source File</title>
    <link href="/Content/Help.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/tabs.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="header">
        <img id="logo" alt="StateForge" src="/Content/Images/StateForgeLogo.png" />
        <div id="title">
            <h1>
                Examples using state machines generated by StateBuilderCpp
            </h1>
            <h3>
                Ping: UdpEchoClient.h Source File
            </h3>
        </div>
        <div id="menucontainer">
            <ul id="menu">
                <li><a href="/">Home</a></li>
                <li><a href="/Home/Download">Downloads</a></li>
                <li><a href="/Help/state-machine-tools.aspx">Help</a></li>
                <li><a href="/Home/Faq">F.A.Q</a></li>
                <li><a href="/Home/About">Contact us</a></li>
            </ul>
        </div>
    </div>
<!-- Generated by Doxygen 1.7.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">UdpEchoClient.h</div>  </div>
</div>
<div class="contents">
<a href="_udp_echo_client_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef UDPECHOCLIENT_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define UDPECHOCLIENT_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;QtCore/QObject&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;QtNetwork/QHostAddress&gt;</span>
<a name="l00006"></a>00006 
<a name="l00007"></a>00007 <span class="keyword">class </span>QUdpSocket;
<a name="l00008"></a>00008 
<a name="l00009"></a><a class="code" href="class_udp_echo_client.html">00009</a> <span class="keyword">class </span><a class="code" href="class_udp_echo_client.html">UdpEchoClient</a> : <span class="keyword">public</span> QObject
<a name="l00010"></a>00010 {
<a name="l00011"></a>00011     Q_OBJECT
<a name="l00012"></a>00012 <span class="keyword">public</span>:
<a name="l00013"></a>00013     <a class="code" href="class_udp_echo_client.html#a451d983bc262ba9749a711f65de8c77d">UdpEchoClient</a>(QObject *pParent = NULL); 
<a name="l00014"></a>00014     <span class="keyword">virtual</span> <a class="code" href="class_udp_echo_client.html#a1f32d159aaac158aed84b99a11bd7512">~UdpEchoClient</a>();
<a name="l00015"></a>00015     <span class="keywordtype">void</span> <a class="code" href="class_udp_echo_client.html#af9885baea55efc4fc611605e087d6427">send</a>();
<a name="l00016"></a>00016 
<a name="l00017"></a>00017 signals:
<a name="l00018"></a>00018     <span class="keywordtype">void</span> <a class="code" href="class_udp_echo_client.html#a7e5e7c8b80ab2802c056b04370e2f44c">reply</a>();
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 <span class="keyword">private</span> slots:
<a name="l00021"></a>00021     <span class="keywordtype">void</span> <a class="code" href="class_udp_echo_client.html#ab828ca963e7387d8f28cbe8c5f88d8e6">onReply</a>();
<a name="l00022"></a>00022 
<a name="l00023"></a>00023 <span class="keyword">private</span>:
<a name="l00024"></a><a class="code" href="class_udp_echo_client.html#ade73b42026a761a494025b7c753c9ac4">00024</a>     QUdpSocket *<a class="code" href="class_udp_echo_client.html#ade73b42026a761a494025b7c753c9ac4">m_pUdpSocket</a>;
<a name="l00025"></a><a class="code" href="class_udp_echo_client.html#ab7e8f9607c4478554bebde8c4adc2147">00025</a>     QHostAddress <a class="code" href="class_udp_echo_client.html#ab7e8f9607c4478554bebde8c4adc2147">m_address</a>;
<a name="l00026"></a><a class="code" href="class_udp_echo_client.html#a88d2805cad5ad2dba77336583e5c6702">00026</a>     <span class="keywordtype">int</span> <a class="code" href="class_udp_echo_client.html#a88d2805cad5ad2dba77336583e5c6702">m_port</a>;
<a name="l00027"></a><a class="code" href="class_udp_echo_client.html#a6b5875ed18c71a2a7966fea4362aa814">00027</a>     QByteArray <a class="code" href="class_udp_echo_client.html#a6b5875ed18c71a2a7966fea4362aa814">m_datagram</a>;
<a name="l00028"></a>00028 };
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 <span class="preprocessor">#endif // UDPECHOCLIENT_H</span>
</pre></div></div>
</div>
﻿<div id="footer">
    <hr />
    <p>
        Copyright &copy; 2011 StateForge.</p>
    <hr />
</div>
</body> </html> 
